#include <stdlib.h>
#include <stdio.h>
#include <htslib/sam.h>
#include <htslib/bgzf.h>
#include "kseq.h"


KSEQ_DECLARE(gzFile)
#if 1
void test( char *argv[])
{


}

void test1( char *argv[])
{

}
#endif 


int main( int argc , char *argv[])
{
    samFile *fp =  sam_open(argv[1],"r");

    bam_hdr_t *h = sam_hdr_read(fp);

    bam1_t *b = bam_init1();
    //int  i =  0 ;
    hts_set_threads(fp,12);
    while(sam_read1(fp,h,b) >=0 ){;}
    bam_destroy1(b);
    sam_close(fp);
    return 0 ;
}

